function Nav(list){
    base(this,LSprite,[]);//此类继承Sprite
    var self=this;

    self.yuan=new LBitmap(new LBitmapData(datalist['yuan']));
    self.addChild(self.yuan);
    self.yuan.x=-10;
    self.yuan.y=-20;
    self.yuan.alpha=0;

    self.bg=new LBitmap(new LBitmapData(datalist['nav']));
    self.addChild(self.bg);



    self.addEventListener(LMouseEvent.MOUSE_DOWN,function(){
        if(isClick==false)return;
        if(self.yuan.alpha==0){
            self.yuan.alpha=0.5;
            game.p0to1();
        }else if(self.yuan.alpha==0.5){
            self.yuan.alpha=0;
            game.p1to0();
        }
    });
}